package com.example.fw;

public class ContactObjects {
	public String firstname;
	public String lastname;
	public String address;
	public String home;
	public String mobile;
	public String work;
	public String email;
	public String email2;
	public String bday;
	public String bmonth;
	public String byear;
	public String group;
	public String address2;
	public String phone2;
	public String id;
	public String fullname;
	
	//Run main method - Ctrl+F11 TODO remove when complete the test.
//	public static void main(String[] args){
//		ContactObjects c = new ContactObjects();
//		System.out.println("firstname: "+c.firstname);
//		System.out.println("lastname: "+c.lastname);
//	}

	public String getFullname() {
		return fullname;
	}
	
	public String getFirstname() {
		return firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public String getAddress() {
		return address;
	}

	public String getHome() {
		return home;
	}

	public String getMobile() {
		return mobile;
	}

	public String getWork() {
		return work;
	}

	public String getEmail() {
		return email;
	}

	public String getEmail2() {
		return email2;
	}

	public String getBday() {
		return bday;
	}

	public String getBmonth() {
		return bmonth;
	}

	public String getByear() {
		return byear;
	}

	public String getGroup() {
		return group;
	}

	public String getAddress2() {
		return address2;
	}

	public String getPhone2() {
		return phone2;
	}

	public String getId() {
		return id;
	}

	public ContactObjects setFullname (String fullname) {
		this.fullname = fullname;
		return this;
	}

	public ContactObjects setFirstname(String firstname) {
		this.firstname = firstname;
		return this;
	}
	
	public ContactObjects setLastname(String lastname) {
		this.lastname = lastname;
		return this;
	}

	public ContactObjects setAddress(String address) {
		this.address = address;
		return this;
	}

	public ContactObjects setHome(String home) {
		this.home = home;
		return this;
	}
	
	public ContactObjects setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}
	
	public ContactObjects setWork(String work) {
		this.work = work;
		return this;
	}
	
	public ContactObjects setEmail(String email) {
		this.email = email;
		return this;
	}
	
	public ContactObjects setEmail2(String email2) {
		this.email2 = email2;
		return this;
	}

	public ContactObjects setBday(String bday) {
		this.bday = bday;
		return this;
	}

	public ContactObjects setBmonth(String bmonth) {
		this.bmonth = bmonth;
		return this;
	}

	public ContactObjects setByear(String byear) {
		this.byear = byear;
		return this;
	}

	public ContactObjects setGroup(String group) {
		this.group = group;
		return this;
	}
	
	public ContactObjects setAddress2(String address2) {
		this.address2 = address2;
		return this;
	}
	
	public ContactObjects setPhone2(String phone2) {
		this.phone2 = phone2;
		return this;
	}
	
	public ContactObjects setId(String id) {
		this.id = id;
		return this;
	}

	@Override
	public String toString() {
		return "Contact [" + id + ", " + fullname + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((fullname == null) ? 0 : fullname.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ContactObjects other = (ContactObjects) obj;
		if (fullname == null) {
			if (other.fullname != null)
				return false;
		} else if (!fullname.equals(other.fullname))
			return false;
		if (id != null && other.id != null) {
			return id.equals(other.id);
		}
		return true;
	}
}